package cn.shenshen.shop.web.controller;

import cn.shenshen.shop.domain.User;
import cn.shenshen.shop.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户控制器
 */
@RestController
public class UserController {

    @Autowired
    private IUserService userService;

    @RequestMapping("findById")
    public User findById(Long id){
        return userService.selectById(id);
    }
}
